package org.ponly.cta4j;

import java.util.Locale;

/**
 * 验证码工厂.
 *
 * @author vacoor
 * @since 1.0
 */
public interface CaptchaFactory {

    /**
     * 获取一个验证码.
     *
     * @return 验证码
     */
    Captcha getCaptcha();

    /**
     * 获取一个适用于给定 locale 的验证码.
     *
     * @param locale locale
     * @return 验证码
     */
    Captcha getCaptcha(Locale locale);

}
